package com.catsic.zcjc.dao;

import java.util.List;

import javax.persistence.QueryHint;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.jpa.repository.QueryHints;

import com.catsic.base.BaseDao;
import com.catsic.zcjc.entity.EquipFileData;


public interface EquipFileDataDao extends BaseDao<EquipFileData, String>{

    @Query("select e from EquipFileData e where e.equipData.id = ?1 and e.type=?2 ")
    @QueryHints({ @QueryHint(name = "org.hibernate.cacheable", value ="true") })
    public List<EquipFileData> findByDataIdAndType(String dataId,int type);

}
